﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web;

namespace K3R.Web.Script {
	public class ScriptModule : IHttpModule {
		#region IHttpModule Members
		public void Init(HttpApplication context) {
			//context.BeginRequest += new EventHandler(context_BeginRequest);
		}

		void context_BeginRequest(object sender, EventArgs e) {
			Assembly currentWebApp = null;
			foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
				if (assembly.GetName().Name.StartsWith("App_Web_")) {
					currentWebApp = assembly;
				}

			if (currentWebApp != null) {
			}
		}

		public void Dispose() {}
		#endregion
	}
}
